#include "favoritesfiltermodel.h"
#include <hyperspinmodel.h>

FavoritesFilterModel::FavoritesFilterModel(QObject* parent)
  : QSortFilterProxyModel(parent)
{
}

bool FavoritesFilterModel::filterAcceptsRow(int source_row, const QModelIndex &) const
{
  return sourceModel()->index(source_row,0).data(hs::FavoriteRole).toBool();
}
